首页> 外文OA文献 >A Meta-Programming Approach to Realizing Dependently Typed Logic Programming
【2h】

A Meta-Programming Approach to Realizing Dependently Typed Logic Programming

机译:一种实现依赖类型逻辑的元编程方法   程序设计

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

Dependently typed lambda calculi such as the Logical Framework (LF) canencode relationships between terms in types and can naturally capturecorrespondences between formulas and their proofs. Such calculi can also begiven a logic programming interpretation: the Twelf system is based on such aninterpretation of LF. We consider here whether a conventional logic programminglanguage can provide the benefits of a Twelf-like system for encoding type andproof-and-formula dependencies. In particular, we present a simple mapping fromLF specifications to a set of formulas in the higher-order hereditary Harrop(hohh) language, that relates derivations and proof-search between the twoframeworks. We then show that this encoding can be improved by exploitingknowledge of the well-formedness of the original LF specifications to elidemuch redundant type-checking information. The resulting logic program has astructure that closely resembles the original specification, thereby allowingLF specifications to be viewed as hohh meta-programs. Using the Teyjusimplementation of lambdaProlog, we show that our translation provides anefficient means for executing LF specifications, complementing the ability thatthe Twelf system provides for reasoning about them.
机译:依存类型的Lambda演算(例如逻辑框架(LF))可以编码类型中各项之间的关系,并且可以自然地捕获公式及其证明之间的对应关系。这种计算也可以用逻辑程序解释来解释:Twelf系统是基于LF的这种解释。我们在这里考虑传统的逻辑编程语言是否可以提供类似Twelf的系统来编码类型和证明与公式的依赖关系。特别是,我们以高阶遗传Harrop(hohh)语言提供了从LF规范到一组公式的简单映射,该映射将两个框架之间的推导和证明搜索联系起来。然后,我们表明可以通过利用原始LF规范的格式知识来消除大量冗余的类型检查信息来改善这种编码。生成的逻辑程序的结构与原始规范非常相似,因此可以将LF规范视为元程序。使用lambdaProlog的Teyjus实现,我们证明了我们的翻译为执行LF规范提供了一种有效的方法,补充了Twelf系统提供的关于它们进行推理的能力。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
代理获取

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号